/*
# File    :   trie_tree.h
# Date    :   Sun, May 26, 2019 10:19:09 PM
*/

#ifndef __TRIE_TREE_H
#define __TRIE_TREE_H
#include <stdio.h>
#define MAX 26
//static const char MAX = 26;

typedef struct TrieNode
{
    int nCount;//记录该字符出现次数
    struct TrieNode* next[MAX];
}TrieNode;
  
  
/*初始化*/
void InitTrieRoot(TrieNode* *pRoot);
  
/*创建新结点*/
TrieNode* CreateTrieNode();
  
/*插入*/
void InsertTrie(TrieNode* *pRoot,char *s);
  
//查找
int SearchTrie(TrieNode* *pRoot,char *s);

#endif /* ifndef __TRIE_TREE_H */
